<div class="navbar navbar-fixed-top navbar-default" role="banner" data-lift="SessionSnippet.navbarTop">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".top-nav-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="/index">
        羊八井花园&nbsp;<span class="text-sm">活泼、开朗、健谈……</span>
      </a>
    </div>

    <nav class="collapse navbar-collapse top-nav-collapse" role="navigation">
      <ul class="nav navbar-nav">
        <li><a href="/doc">文档</a></li>
        <!--<li><a href="/category">分类</a></li>-->
        <li><a href="/tag">标签</a></li>
        <!--<li><a href="/image">图片</a></li>-->
        <li><a href="/about">关于</a></li>
      </ul>
      <div class="navbar-right" id="main-menu">
        <span id="ajax-loader" style="display:none;">
          <img src="/assets/img/spinner.gif"/>
          <span class="fa fa-spinner fa-spin"></span>
          &nbsp;
        </span>

        <div class="navbar-btn btn-group" id="c-sign_in">
          <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
            <span id="user-account">#账户名#</span>
            <input type="hidden" id="me-user-id"/>
            <b class="caret"></b>
          </button>
          <ul class="dropdown-menu">
            <li><a href="/doc/new">发表文章</a></li>
            <li><a href="/h/user/">用户中心</a></li>
            <li class="divider"></li>
            <li><a href="/h/user/sign_out">登出</a></li>
          </ul>
        </div>
        <div class="navbar-btn btn-group" id="c-not-sign_in">
          <a href="/h/user/sign_up" class="btn btn-success">注册</a>
          <a href="/h/user/sign_in" class="btn btn-default">登录</a>
        </div>
      </div>
    </nav>

  </div>
</div>
